<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>無標題文件</title>
<script src="http://www.google.com/jsapi?key=ABQIAAAA1XbMiDxxBTCY2FkPh06RRaGTYH6UMl8mADNa0YKuWNNa8VNxQEerTAUcfkyrr6OwBovxn7TDAH5Q"></script>

<script>
function cd(o){console.debug(o)};
google.load("jquery", "1");

var SET18ONLYstr='ha';
function SET18ONLY()
{
	$('span').each(function()
	{
		try
		{
			if($(this).attr('style').search('line-through')>1)
			{				
				$(this).toggle('slow',function(){
					if($(this).css('display')=='block')
					{
						$(this).css('display','');
						$('span.apmsg').remove();
					}
				});
				
					var prev=$(this).prev();
					if (prev.text()!=SET18ONLYstr)
					{
						$(this).after('<span class="apmsg" style="display:none" ><a href="javascript:SET18ONLY()">'+SET18ONLYstr+'</a></span>');
				    }
				
			}
		}catch(er){}				
	})
	$('span.apmsg').toggle('slow');
}

function OnLoad(){
		SET18ONLY();	
}
    
google.setOnLoadCallback(OnLoad);

</script>
</head>

<body>
<a href="javascript:SET18ONLY()">work</a>
aa
<span style="text-decoration: line-through;">123</span>
<span style="text-decoration: line-through;">456</span>
<span style="color:#CC00FF">>789 </span>
<span style="text-decoration: line-through;">123</span>
<span style="text-decoration: line-through;">456</span>
<span >asb </span>gfddffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
</body>
</html>
